import { config } from '@vue/test-utils'
import axios from 'axios'

const instance = axios.create({
  baseURL: 'http//localhost:3000'
})

//请求拦截器
instance.interceptors.request.use(
  config => {
    return config
  },
  error => {
    return Promise.reject(error)
  }
)

//响应拦截器
instance.interceptors.request.use(
  response => {
    return response
  },
  error => {
    return Promise.reject(error)
  }
)

//暴露axios副本对象
export default instance

